package edu.xust.MetadataGenerator.domain;

import java.io.Serializable;

import com.google.gson.annotations.Expose;

public class FieldValidatorParam implements Serializable {
	private static final long id = Table.generateId();

	@Expose
	private String value;

	@Expose
	private String name;

	public FieldValidatorParam(){
		value = "100";
		name = "max";
	}
	public String getValue() {
		return value;
	}
	public void setValue(String value) {
		this.value = value;
	}
	public String getName() {
		return name;
	}
	public void setName(String type) {
		this.name = type.replace(" ", "");
	}
	public static long getId() {
		return id;
	}
	@Override
	public String toString() {
		return name;
	}
}
